package com.ccrfid.rmc6.entity.alarm;

import javax.persistence.*;

@Entity
@Table(name = "alarm_rule")
public class AlarmRuleEntity {
    private Long id;
    private String alarmRuleName;
    private Integer alarmType;
    private String personnelValue;
    private String personnelValue2;
    private Integer timeType;
    private String timeValue;
    private Integer delayTime;
    private Long locationId;
    private String relatedLocations;
    private Integer alarmLevel;
    private String alarmLinkageMode;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "alarm_rule_name")
    public String getAlarmRuleName() {
        return alarmRuleName;
    }

    public void setAlarmRuleName(String alarmRuleName) {
        this.alarmRuleName = alarmRuleName;
    }

    @Basic
    @Column(name = "alarm_type")
    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    @Basic
    @Column(name = "personnel_value")
    public String getPersonnelValue() {
        return personnelValue;
    }

    public void setPersonnelValue(String personnelValue) {
        this.personnelValue = personnelValue;
    }

    @Basic
    @Column(name = "personnel_value2")
    public String getPersonnelValue2() {
        return personnelValue2;
    }

    public void setPersonnelValue2(String personnelValue2) {
        this.personnelValue2 = personnelValue2;
    }

    @Basic
    @Column(name = "time_type")
    public Integer getTimeType() {
        return timeType;
    }

    public void setTimeType(Integer timeType) {
        this.timeType = timeType;
    }

    @Basic
    @Column(name = "time_value")
    public String getTimeValue() {
        return timeValue;
    }

    public void setTimeValue(String timeValue) {
        this.timeValue = timeValue;
    }

    @Basic
    @Column(name = "delay_time")
    public Integer getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(Integer delayTime) {
        this.delayTime = delayTime;
    }

    @Basic
    @Column(name = "location_id")
    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    @Basic
    @Column(name = "related_locations")
    public String getRelatedLocations() {
        return relatedLocations;
    }

    public void setRelatedLocations(String relatedLocations) {
        this.relatedLocations = relatedLocations;
    }

    @Basic
    @Column(name = "alarm_level")
    public Integer getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmLevel(Integer alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    @Basic
    @Column(name = "alarm_linkage_mode")
    public String getAlarmLinkageMode() {
        return alarmLinkageMode;
    }

    public void setAlarmLinkageMode(String alarmLinkageMode) {
        this.alarmLinkageMode = alarmLinkageMode;
    }

    @Override
    public String toString() {
        return "AlarmRuleEntity{" +
                "id=" + id +
                ", alarmType=" + alarmType +
                ", personnelValue='" + personnelValue + '\'' +
                ", personnelValue2='" + personnelValue2 + '\'' +
                ", timeType=" + timeType +
                ", timeValue='" + timeValue + '\'' +
                ", delayTime=" + delayTime +
                ", locationId=" + locationId +
                ", relatedLocations='" + relatedLocations + '\'' +
                ", alarmLevel=" + alarmLevel +
                ", alarmLinkageMode='" + alarmLinkageMode + '\'' +
                '}';
    }
}
